	<!--  CONTENT SECTION BEGINS HERE-->

	
<?php		
if(sizeof($this->requestsData)==0):
	echo "<h1><center>No pending requests to show</center></h1>";
else:?>
	
	<h2>Pending Requests</h2> 
				
		<!--TABLE FOR LATER USE-->	
	   <div class="table"> <img src="../images/bg-th-left.gif" width="8" height="7" alt="" class="left" /> 
							<img src="../images/bg-th-right.gif" width="7" height="7" alt="" class="right" />
			<table class="listing" cellpadding="0" cellspacing="0">
			  <tr>
				<th class="first" width="150">Requestor</th>
				<th width="120">Current Shift</th>
				<th width="120">Requested Shift</th>            
				<th width="120">Requested Day</th>            
				<th width="80">Changing with</th>            
				<th width="120">Status</th>            
				<th>&nbsp </th>
				<th class="last">&nbsp </th>
			  </tr>	
			  
			<?php

			for($i=0;$i <= sizeof($this->requestsData)-1;$i++):
				$trClassEnabled= '';
				if(($i % 2)==0)
					$trClassEnabled = 'class="bg"';
				echo "<tr ".$trClassEnabled.">\n";
					echo "<td class='first style2'>".$this->requestsData[$i][1]."</td>\n";
					echo "<td>".$this->requestsData[$i][3]."</td>\n";
					echo "<td>".$this->requestsData[$i][5]."</td>\n";
					echo "<td><a href=\"#\" onclick=\"openDaySchedule('"
						 .$this->requestsData[$i][6]."')\">"
						 .$this->requestsData[$i][6]."</a></td>\n";
					echo "<td>".$this->requestsData[$i][8]."</a></td>\n";
					echo "<td>".$this->requestsData[$i][7]."</a></td>\n";
					echo "<td class='last'>
						  <a href=\"javascript-required\" 
						   title=\"Approve\"
						   onclick=\"approveRequest('".$this->requestsData[$i][0]."');return false;\">
						  <img src='../images/check-icon.gif' width='16' height='16' alt='Edit' />
						  </td>\n";
					echo "<td class='last'>
						  <a href=\"javascript-required\" 
						   title=\"Deny\"
						   onclick=\"denyRequest('".$this->requestsData[$i][0]."');return false;\">
						  <img src='../images/hr.gif' width='16' height='16' alt='Delete' />
						  </td>\n";					  
				echo "</tr>\n";
			
			
			endfor;

			?>
        </table>
	<?php
		endif;
	?>
      </div>		  
	  
	<!-- YOUR CONTENT SECTION ENDS HERE-->

